import request from '@/utils/request';

// 获取登录用户所属航站
export async function getUserServiceCity() {
  return request('/luggage/pkgManage/getUserServiceCity', {
    method: 'get',
  });
}

// 获取进港破损行李管理列表
export async function arrivalDamagedPage(params) {
  return request('/luggage/arrivalDamaged/page', {
    method: 'get',
    params,
  });
}

// 获取航站下拉列表
export async function selectCityInfo(params) {
  return request('/luggage/h5/pkg/mobile/getSelectCityInfo', {
    method: 'get',
    params,
  })
}

// 修改异常行李事故单（包含作废）
export async function updateUnderchargeAccident(data) {
  return request('/luggage/pkg/updateAccident', {
    method: 'post',
    data,
  })
}

// PC端获取事故单完整详情
export async function getPkgAccidentDetail(params) {
  return request('/luggage/pkg/getPkgAccidentDetail', {
    method: 'get',
    params,
  })
}

// 批量修改图片
export async function batchUpdateImg(data) {
  return request('/luggage/lost/img/batchUpdateImg', {
    method: 'post',
    data,
  })
}

// 进港破损导出
export async function arrivalDamagedExport(params) {
  return request('/luggage/report/arrivalDamaged/export', {
    method: 'get',
    responseType: "blob",
    params,
  })
}
